package com.teame.readbaby.parser;

import org.json.JSONException;

import com.alibaba.fastjson.JSONObject;
import com.teame.readbaby.vo.OrderDetail;

public class OrderCancelParser extends BaseParser<OrderDetail> {

	@Override
	public OrderDetail parseJSON(String paramString) throws JSONException {
		if (paramString == null) {
			return null;
		}
		String result = checkResponse(paramString);
		if (result != null) {
			JSONObject jsonObject = JSONObject.parseObject(paramString);
			OrderDetail orderDetail = new OrderDetail();
			orderDetail.setOrdercancel(true);
			return orderDetail;
		}
		return null;
	}

}
